<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    
    <link href="../../css/bootstrap.css" rel="stylesheet">
    <title>upload file</title>
</head>

<body>

    <div class="panel panel-default">
        <div class="panel-heading">
            <h4>ajax upload file</h4>
        </div>
        <div class="panel-body">
            <form action="" enctype="multipart/form-data">
                <input type="file" name="file" id="file">
            </form>
        </div>
    </div>
    
    <script src="../../js/jquery-1.12.4.js"></script>
    <script src="../../js/bootstrap.min.js"></script>
    <script type="text/javascript">
        $(function () {
            $('#btn').on('click',function(){
                $('#mymodal').modal('show');
            });
            $('#select2').select2({
                language:'zh-CN',
                width: '200'
            });
        });

    </script>
</body>

</html>